package hu.plusone.fakecommander;

import java.io.InputStream;
import java.util.List;

public interface Storage {

    void createFolder(String folderPath);

    List<String> listFilesInFolder(String folderPath);

    List<String> listFoldersInFolder(String folderPath);

    void put(String filePath, InputStream is);
    void put(String folderPath, String filename, InputStream is);

    InputStream get(String filePath);
    InputStream get(String folderPath, String filename);

    /**
     * remove
     * @param path of file or folder
     */
    void remove(String path);
}
